class CreateDepartamentos < ActiveRecord::Migration
  def change
    create_table :departamentos do |t|
      t.string :nome
      t.references :instituto

      t.timestamps
    end
    add_index :departamentos, :instituto_id
  end
end
